#ifndef __CLIENT_H
#define __CLIENT_H

#include <config.h>
#include <lvgl/lvgl.h>

#include <vector>
#include <utility>

using namespace std;
using namespace Chat;


extern User                                loginUser;
extern vector<pair<string, lv_obj_t* [2]>> ChatterList;

extern vector<pair<lv_obj_t*, vector<lv_obj_t*>>> chatMsgContList;

extern pair<string, lv_obj_t* [2]> curChatTo;



StateRet ClientRegisterUser(int sockfd, const User& userInfo);
StateRet ClientLoginUser(int sockfd, const User& userInfo);

void mainInterface();

#endif
